#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>

typedef int BTDataType;

typedef struct BinaryNode {
	struct BinaryNode* left;
	struct BinaryNode* right;
	BTDataType data;
}BTNode;

void preOrder(BTNode* root);
void inOrder(BTNode* root);
void postOrder(BTNode* root);

BTNode* BinaryFind(BTNode * root, BTDataType x);

int BinaryTreeSize(BTNode* root);
int BinaryTreeLeafSize(BTNode* root);
int BinaryTreeLevelSize(BTNode* root,int k);
int BinaryTreeDepth(BTNode* root);

void BinaryDestroy(BTNode* root);